Adding more "small" submenus to testtreemenu
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Fri, 19 Nov 2010 05:59:14 +0000 (14:59 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Tue, 4 Jan 2011 14:37:06 +0000 (23:37 +0900)
tests/testtreemenu.c

index ef86afed3422fdd288a136547120276cb43b263c..d099f0d3fc82d61fb9ace94f536c85c3de00e054 100644 (file)
@@ -69,14 +69,42 @@ simple_tree_model (void)
                      "and I'm not going to answer it",
                      -1);
 
-  gtk_tree_store_append (store, &iter, NULL);
-  gtk_tree_store_set (store, &iter
+  gtk_tree_store_append (store, &parent, NULL);
+  gtk_tree_store_set (store, &parent
                      SIMPLE_COLUMN_NAME, "Whinnie the pooh",
                      SIMPLE_COLUMN_ICON, "gtk-stop",
                      SIMPLE_COLUMN_DESCRIPTION, "The most wonderful thing about tiggers, "
                      "is tiggers are wonderful things",
                      -1);
 
+  gtk_tree_store_append (store, &iter, &parent);
+  gtk_tree_store_set (store, &iter, 
+                     SIMPLE_COLUMN_NAME, "Tigger",
+                     SIMPLE_COLUMN_ICON, "gtk-yes",
+                     SIMPLE_COLUMN_DESCRIPTION, "Eager",
+                     -1);
+
+  gtk_tree_store_append (store, &iter, &parent);
+  gtk_tree_store_set (store, &iter, 
+                     SIMPLE_COLUMN_NAME, "Owl",
+                     SIMPLE_COLUMN_ICON, "gtk-stop",
+                     SIMPLE_COLUMN_DESCRIPTION, "Wise",
+                     -1);
+
+  gtk_tree_store_append (store, &iter, &parent);
+  gtk_tree_store_set (store, &iter, 
+                     SIMPLE_COLUMN_NAME, "Eor",
+                     SIMPLE_COLUMN_ICON, "gtk-no",
+                     SIMPLE_COLUMN_DESCRIPTION, "Depressed",
+                     -1);
+
+  gtk_tree_store_append (store, &iter, &parent);
+  gtk_tree_store_set (store, &iter, 
+                     SIMPLE_COLUMN_NAME, "Piglet",
+                     SIMPLE_COLUMN_ICON, "gtk-media-play",
+                     SIMPLE_COLUMN_DESCRIPTION, "Insecure",
+                     -1);
+
   gtk_tree_store_append (store, &iter, NULL);
   gtk_tree_store_set (store, &iter, 
                      SIMPLE_COLUMN_NAME, "Aleister Crowley",